//有错，但不知道为什么，可能是联合主键的问题
/*
package com.entity.teacher;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "teacher_class")
public class TeacherClass {
    @Id
    @Column(name = "t_id")
    private Long tid;

    @Id
    @Column(name = "c_id")
    private Long cid;

    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }
}

*/
